import request from "../utils/request";
// 根据id文章
export function getById(id) {
  return request.get(`/aboutOurselves/${id}`);
}
// 获取文章列表
export function getList(params) {
  return request.get("/aboutOurselves", { params: params });
}

// 添加文章
export function addAbout(data) {
  return request.post("/aboutOurselves", data);
}
// 修改状态
export function vimState(id,delivery){
    return request.post(`/aboutOurselves/IsActived/${id}`, delivery);
}

// 修改文章
export function modAbout(id, data) {
         return request.put(`/aboutOurselves/${id}`, data);
       }
//删除文章
export function deleteAbout(id, data) {
         return request.delete(`/aboutOurselves/${id}`, data);
       }
